<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Lib_Session
 *
 * @author Zelic
 */
class Lib_Session {

    static function start() {
        session_start();
    }

    static function set($key, $value) {
        $_SESSION[$key] = $value;
    }

    static function remove($key) {
        
    }

    static function get($key) {
        if (Lib_Session::exist($key)) {
            return $_SESSION[$key];
        }
        return false;
    }

    static function exist($key) {
        if (isset($_SESSION[$key])) {
            return true;
        } else {
            return false;
        }
    }

    static function stop() {
        if (isset($_COOKIE[session_name()])){
            setcookie(session_name(), '', time()-3600, '/');
        }
    }

}

?>
